package com.czy.basecommon.utils.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class BaseResponse implements Parcelable {
   private  int ResultCode;
   private  String Error;

    public int getResultCode() {
        return ResultCode;
    }

    public void setResultCode(int resultCode) {
        ResultCode = resultCode;
    }

    public String getError() {
        return Error;
    }

    public void setError(String error) {
        Error = error;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ResultCode);
        dest.writeString(this.Error);
    }

    public BaseResponse() {
    }

    protected BaseResponse(Parcel in) {
        this.ResultCode = in.readInt();
        this.Error = in.readString();
    }

    public static final Parcelable.Creator<BaseResponse> CREATOR = new Parcelable.Creator<BaseResponse>() {
        @Override
        public BaseResponse createFromParcel(Parcel source) {
            return new BaseResponse(source);
        }

        @Override
        public BaseResponse[] newArray(int size) {
            return new BaseResponse[size];
        }
    };
}
